using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using QuanLyKhachSan.DAO;
using QuanLyKhachSan.DTO;

namespace QuanLyKhachSan.BUS
{
    public class ChiTietPhieuThueBUS
    {
        public enum ChiTietPhieuThueBUSResult
        {
            OK,
            DAOERROR
        }

        public static DataTable LayAllChiTiet(int maPhieuThue)
        {
            return ChiTietPhieuThueDAO.LayAllChiTiet(maPhieuThue);
        }

        public static ChiTietPhieuThueBUSResult Insert(ChiTietPhieuThueDTO chiTietThuedto)
        {
            if (!ChiTietPhieuThueDAO.Insert(chiTietThuedto))
                return ChiTietPhieuThueBUSResult.DAOERROR;
            return ChiTietPhieuThueBUSResult.OK;
        }
    }
}
